package org.csnb.common.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @author ning
 * @createTime 2019/8/9 上午9:45
 * @description
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TransData {
    private Integer code;
    private String msg;
    private Object data;

    public TransData() {
    }

    public TransData(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TransData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}